package com.book.dao;


import com.book.bean.Category;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 数据访问层接口，该接口使用mybatis技术访问数据库
 */
@Repository
public interface CategoryDao {

    List<Category> listPager(@Param("page")int page , @Param("size") int  size,@Param("catename") String catename);

    int count();
    int insert(Category category);

    int   update(Category category);

    int  delete(int cid);


}
